     function init_uploader()
     {
    	 var manualuploader = $('#fine-uploader').fineUploader({
          request: {
        	  // '/adon/upload'
        	  endpoint: 'upload'
        	  //endpoint: '/adon/assets/fineuploader/server/uploader'
          },
          autoUpload: false,
          validation: {
              allowedExtensions: ['jpeg', 'jpg', 'txt'],
              sizeLimit: 512000 // 50 kB = 50 * 1024 bytes
            },
            text: {
                uploadButton: '<i class="icon-plus icon-white"></i> Add files',
                cancelButton: '<i class="icon-remove"></i> Cancel',
            },
            template: '<div class="qq-uploader">' +
            '<div class="qq-upload-button btn btn-success">{uploadButtonText}</div>' +
            //' <div id="triggerUpload" class="btn btn-primary"><i class="icon-upload icon-white"></i> Upload now</div>' +
            '<ul class="qq-upload-list"></ul>' +
            '<div class="qq-upload-drop-area"><span>{dragZoneText}</span></div>' +
            '</div>',
			classes: {
			  success: 'alert alert-success',
			  fail: 'alert alert-error'
			},
            showMessage: function(message) {
              // Using Bootstrap's classes
            	display_alert(message, '#alert_area', 'error');
            },
            dragAndDrop: {
            	hideDropzones: false
            },
          debug: true
        });
    	
    	// When a file is added to the list
    	manualuploader.on('submit', function() {
    		IMC.increase_fileCount();
    	});
    	
    	// When a file is removed from the list
    	manualuploader.on('cancel', function() {
    		IMC.decrease_fileCount();
    	});

    	// After each file uploaded
    	manualuploader.on('complete', function(event, id, fileName, responseJSON) {
    	 	if(responseJSON.success) {
    	  		// add the filename to an array
    	  		IM.set_imgURL(fileName);
    	  		// remove one file to the upload list
    	  		IMC.decrease_fileCount();
    	   	
    	  		// if all the files are uploaded
    	  		if(manualuploader.fineUploader('getInProgress') == '0')
    	  		{
    	  			IMC.create(manualuploader);
    	  		}
    	 	}
    	});
    	 
    	return manualuploader;
     }
